import request from "@/api/request";

//获取历史记录和热门搜索
export const indexaction = data => request({ url: '/search/indexaction', method: 'get', data })

//搜索提示
export const helperaction = data => request({ url: '/search/helperaction', method: 'get', data })

//添加历史记录
export const addhistoryaction = data => request({ url: '/search/addhistoryaction', method: 'post', data })

//删除历史记录
export const clearhistoryAction = data => request({ url: '/search/clearhistoryAction', method: 'post', data })
